import request from '@/plugins/axios'

export function getPage(params) {
    return request({
        url: '/productCategories/getPage',
        method: "post",
        data: params
    })
}

export function goodsTypeHandleAdd(params) {
    return request({
        url: '/productCategories/create',
        method: "post",
        data: params
    })
}

export function goodsTypeHandleUpdate(params) {
    return request({
        url: '/productCategories/update',
        method: "put",
        data: params
    })
}

export function goodsTypeHandleDelete(id) {
    return request({
        url: '/productCategories/delete/'+id,
        method: "delete",
    })
}